﻿using AutoTask.Model;

namespace AutoTask.Collect
{
    public interface IAutoTaskCollect
    {
        bool BeginExec(Guid id, DateTime next, int verNum, out int ver);
        void ExecEnd(Guid id);
        RemoteTask GetTask(Guid id, int verNum);
        BasicTask[] GetTasks(long regionId);
        TaskState GetTaskState(Guid id);
        void SetTaskTime(Guid id, DateTime execTime);
        void StopTask(Guid id, string error);
    }
}